package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:38
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_buildings")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Buildings对象", description = "")
public class Buildings implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "楼栋的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "小区的id")
    @TableField("com_id")
    private Integer comId;

    @ApiModelProperty(value = "小区实体类")
    private Community community;

    @ApiModelProperty(value = "楼栋的编号")
    @TableField("build_num")
    private String buildNum;

    @ApiModelProperty(value = "楼栋的名字")
    @TableField("build_name")
    private String buildName;

    @ApiModelProperty(value = "楼栋的面积")
    @TableField("build_area")
    private Double buildArea;

    @ApiModelProperty(value = "描述")
    @TableField("remark")
    private String remark;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer deleted;
}
